/*
 * toString is not necessary for this class. Does not affect anything.
 */
// $codepro.audit.disable com.instantiations.assist.eclipse.analysis.audit.rule.effectivejava.alwaysOverridetoString.alwaysOverrideToString

/**
*
* This class iterates through each array of strings or integers.
*
* @author John J Storey
* @version 6
*/
public class GoodsModel implements java.io.Serializable { 
	/**
	 * 
	 */
	protected String name, ie, cr, er = null;
	
	/**
	 * 
	 */
	protected int mtlp, mtlu, ttp, basePrice, ipl, var, mtl, mth = 0;
	
	/**
	*
	* Iterates through each array based on the integer entered into the parameters.
	* Bases the base price according to the goodsInfo entered into the parameters.
	* 
	* @param goodsInfo
	* @param i
	*/
	public GoodsModel(GoodsInfo goodsInfo, int i){
		basePrice=GoodsInfo.BasePrice[i];
		cr=GoodsInfo.Cr[i];
		er=GoodsInfo.Er[i];
		ie=GoodsInfo.Ie[i];
		ipl=GoodsInfo.Ipl[i];
		mth=GoodsInfo.Mth[i];
		mtl=GoodsInfo.Mtl[i];
		mtlp=GoodsInfo.Mtlp[i];
		mtlu=GoodsInfo.Mtlu[i];
		name=GoodsInfo.Name[i];
		ttp=GoodsInfo.Ttp[i];
		var=GoodsInfo.Var[i];
	}
}
